package com.ruoyi.order.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.UserAppleRefundMapper;
import com.ruoyi.order.domain.UserAppleRefund;
import com.ruoyi.order.service.IUserAppleRefundService;

/**
 * 苹果退款记录Service业务层处理
 * 
 * @author DEREK
 * @date 2024-08-15
 */
@Service
public class UserAppleRefundServiceImpl extends ServiceImpl<UserAppleRefundMapper, UserAppleRefund> implements IUserAppleRefundService 
{
    @Autowired
    private UserAppleRefundMapper userAppleRefundMapper;

    /**
     * 查询苹果退款记录
     * 
     * @param id 苹果退款记录主键
     * @return 苹果退款记录
     */
    @Override
    public UserAppleRefund selectUserAppleRefundById(Long id)
    {
        return userAppleRefundMapper.selectUserAppleRefundById(id);
    }

    /**
     * 查询苹果退款记录列表
     * 
     * @param userAppleRefund 苹果退款记录
     * @return 苹果退款记录
     */
    @Override
    public List<UserAppleRefund> selectUserAppleRefundList(UserAppleRefund userAppleRefund)
    {
        return userAppleRefundMapper.selectUserAppleRefundList(userAppleRefund);
    }

    /**
     * 新增苹果退款记录
     * 
     * @param userAppleRefund 苹果退款记录
     * @return 结果
     */
    @Override
    public int insertUserAppleRefund(UserAppleRefund userAppleRefund)
    {
        return userAppleRefundMapper.insertUserAppleRefund(userAppleRefund);
    }

    /**
     * 修改苹果退款记录
     * 
     * @param userAppleRefund 苹果退款记录
     * @return 结果
     */
    @Override
    public int updateUserAppleRefund(UserAppleRefund userAppleRefund)
    {
        return userAppleRefundMapper.updateUserAppleRefund(userAppleRefund);
    }

    /**
     * 批量删除苹果退款记录
     * 
     * @param ids 需要删除的苹果退款记录主键
     * @return 结果
     */
    @Override
    public int deleteUserAppleRefundByIds(Long[] ids)
    {
        return userAppleRefundMapper.deleteUserAppleRefundByIds(ids);
    }

    /**
     * 删除苹果退款记录信息
     * 
     * @param id 苹果退款记录主键
     * @return 结果
     */
    @Override
    public int deleteUserAppleRefundById(Long id)
    {
        return userAppleRefundMapper.deleteUserAppleRefundById(id);
    }
}
